<form id="frm_add" method="post" accept-charset="utf-8" action="<?php print $active; ?>">
    <table>
        <tbody>
            <tr>
                <td><label for="name"><?php print lang('emp_code'); ?></label></td>
                <td><input type="text" name="code" value="<?php print ( isset($employee) )? $employee->code : ''; ?>" class="itext ivalidate ui-widget-content ui-corner-all" /></td>
            </tr>
            <tr>
                <td colspan="2"><div id="error_code" class="error"></div></td>
            </tr>
            <tr>
                <td><label for="name"><?php print lang('emp_name'); ?></label></td>
                <td><input type="text" name="name" value="<?php print ( isset($employee) )? $employee->name : ''; ?>" class="itext ivalidate ui-widget-content ui-corner-all" /></td>
            </tr>
            <tr>
                <td colspan="2"><div id="error_name" class="error"></div></td>
            </tr>
            <tr>
                <td><label for="cmnd_number"><?php print lang('emp_cmnd_number'); ?></label></td>
                <td><input type="text" name="cmnd_number" value="<?php print ( isset($employee) )? $employee->cmnd_number : ''; ?>" class="itext ivalidate ui-widget-content ui-corner-all" /></td>
            </tr>
            <tr>
                <td colspan="2"><div id="error_cmnd_number" class="error"></div></td>
            </tr>
            <tr>
                <td><label for="cmnd_date"><?php print lang('emp_cmnd_date'); ?></label></td>
                <td><input type="text" name="cmnd_date" value="<?php print ( isset($employee) )? dateMysqlToVN($employee->cmnd_date) : ''; ?>" class="ivalidate ui-widget-content ui-corner-all datepicker" /></td>
            </tr>
            <tr>
                <td colspan="2"><div id="error_cmnd_date" class="error"></div></td>
            </tr>
            <tr>
                <td><label for="name"><?php print lang('emp_cmnd_where'); ?></label></td>
                <td><input type="text" name="cmnd_where" value="<?php print ( isset($employee) )? $employee->cmnd_where : ''; ?>" class="itext ivalidate ui-widget-content ui-corner-all" /></td>
            </tr>
            <tr>
                <td colspan="2"><div id="error_cmnd_where" class="error"></div></td>
            </tr>
            <tr>
                <td><label for="name"><?php print lang('emp_birthday'); ?></label></td>
                <td><input type="text" name="birthday" value="<?php print ( isset($employee) )? dateMysqlToVN($employee->birthday) : ''; ?>" class="ivalidate ui-widget-content ui-corner-all datepicker" /></td>
            </tr>
            <tr>
                <td colspan="2"><div id="error_birthday" class="error"></div></td>
            </tr>
            <tr>
                <td><label for="name"><?php print lang('emp_phone'); ?></label></td>
                <td><input type="text" name="phone" value="<?php print ( isset($employee) )? $employee->phone : ''; ?>" class="itext ivalidate ui-widget-content ui-corner-all" /></td>
            </tr>
            <tr>
                <td><label for="name"><?php print lang('emp_address'); ?></label></td>
                <td><input type="text" name="address" value="<?php print ( isset($employee) )? $employee->address : ''; ?>" class="itext ivalidate ui-widget-content ui-corner-all" /></td>
            </tr>
            
            
<!--            
            <tr>
                <td><label for="status"><?php //print lang('per_status'); ?></label></td>
                <td>
                    <select name="status" class="itext ui-widget-content ui-corner-all">
                        <option value="1" <?php //print ( isset($permission) && $permission['status'] == 1 ) ? 'selected="selected"':''; ?>><?php //print lang('per_tt_active'); ?></option>
                        <option value="2" <?php //print ( isset($permission) && $permission['status'] == 2 ) ? 'selected="selected"':''; ?>><?php //print lang('per_tt_disable'); ?></option>
                        <?php //if( isset($permission) && $permission['status'] == -1 ): ?>
                        <option value="-1" <?php //print ( isset($permission) && $permission['status'] == -1 ) ? 'selected="selected"':''; ?>><?php //print lang('per_tt_delete'); ?></option>
                        <?php //endif; ?>
                    </select>
                </td>
            </tr>
-->
        </tbody>
    </table>
    <?php if( isset($employee) ): ?>
    <input type="hidden" name="id" value="<?php print $employee->id; ?>">
    <?php endif; ?>
</form>